package com.shanzmoo.db.module.psys.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.module.psys.entity.PSysRoleMenuEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 平台管理系统角色菜单关联表 更新对象
 *
 * @author Gzhao 2021-03-10
 */
@Data
@ApiModel("平台管理系统角色菜单关联表-更新对象")
public class RoleMenuUpdateDTO extends RoleMenuSaveDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色主键")
    private Integer roleId;


    public PSysRoleMenuEntity convertEntity() {
        PSysRoleMenuEntity target = new PSysRoleMenuEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
